<?php /* Smarty version Smarty-3.1.18, created on 2015-05-14 12:32:14
         compiled from "../application/views/admin/user_edit.tpl" */ ?>
<?php /*%%SmartyHeaderCode:14991803915553fca5b77f58-75848924%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a410d9eedfaef50f3d1c935fe264194c8fb0a026' => 
    array (
      0 => '../application/views/admin/user_edit.tpl',
      1 => 1431577257,
      2 => 'file',
    ),
    'd6cb1c267a14fa287ed7ec0f330367b09e5e7b70' => 
    array (
      0 => '../application/views/admin/admin_header.tpl',
      1 => 1431439870,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '14991803915553fca5b77f58-75848924',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_5553fca5c4d043_01456014',
  'variables' => 
  array (
    'active' => 0,
    'username' => 0,
    'info' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5553fca5c4d043_01456014')) {function content_5553fca5c4d043_01456014($_smarty_tpl) {?><!DOCTYPE html>
<html>
<head>
	<title>机械电子学院网站后台管理系统</title>
	<meta charset="utf-8"/>
	<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>
Public/bootstrap/css/bootstrap.min.css">
	<link rel="stylesheet" href="<?php echo base_url();?>
Public/css/index.css">
	<script charset="utf-8" src="<?php echo base_url();?>
kindeditor/kindeditor-min.js"></script>
	<script charset="utf-8" src="<?php echo base_url();?>
kindeditor/php/upload_json.php"></script>
	<script charset="utf-8" src="<?php echo base_url();?>
kindeditor/plugins/autoheight/autoheight.js"></script>
	<script>
		 KindEditor.ready(function(K) {
		 		var options = {
		 			width : '100%',
		 			height : '200px',
		 			items : ['source', '|', 'undo', 'redo', '|', 'justifyleft', 'justifycenter', 'justifyright',
 							'justifyfull', '|', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
        					'italic', 'underline', 'lineheight', 'removeformat', '|', 'image', 'multiimage',
        					'insertfile', 'table', 'hr','link', 'unlink', '|',],
        			autoHeightMode : true,
        			filterMode : false,
		 		}
                window.editor = K.create('textarea[name="Experience"]', options);
                window.editor = K.create('textarea[name="Research"]', options);
                window.editor = K.create('textarea[name="Description"]', options);
                window.editor = K.create('textarea[name="Prize"]', options);
                window.editor = K.create('textarea[name="SinglePage"]', options);
        });
	</script>
</head>
<body>
	<div class="navbar navbar-default navbar-fixed-top" style="background-color: #fff;border-color: #fff;">
		<div class="container">
			<div class="navbar-header">
				<a class="navbar-brand" href="#" style="font-size: 20px;">CloudCMS</a>
			</div>
			<div class="navbar-collapse collapse">
				<ul class="nav navbar-nav">
					<li <?php echo IsActive('admin',$_smarty_tpl->tpl_vars['active']->value);?>
>
						<a href="<?php echo site_url('category/admin');?>
">后台首页</a>
					</li>
					<li <?php echo IsActive('document',$_smarty_tpl->tpl_vars['active']->value);?>
>
						<a href="<?php echo site_url('/document');?>
">内容管理</a>
					</li>
					<li <?php echo IsActive('category',$_smarty_tpl->tpl_vars['active']->value);?>
>
						<a href="<?php echo site_url('/category');?>
">栏目管理</a>
					</li>
					<li <?php echo IsActive('user',$_smarty_tpl->tpl_vars['active']->value);?>
>
						<a href="<?php echo site_url('/user');?>
">用户管理</a>
					</li>
					<li <?php echo IsActive('alumni',$_smarty_tpl->tpl_vars['active']->value);?>
>
						<a href="<?php echo site_url('/alumni');?>
">院友管理</a>
					</li>
					<li <?php echo IsActive('message',$_smarty_tpl->tpl_vars['active']->value);?>
>
						<a href="<?php echo site_url('/document/Judge?Id=104');?>
">留言管理</a>
					</li>
				</ul>
				<ul class="nav navbar-nav navbar-right">
					<li>
						<a href="#">欢迎你，<?php echo $_smarty_tpl->tpl_vars['username']->value;?>
</a>
					</li>
					<li>
						<a href="<?php echo site_url('admin/logout');?>
">注销登陆</a>
					</li>
				</ul>
				<ul class="nav navbar-nav navbar-right">
					<li>
						<a href="<?php echo base_url();?>
" target="__blank" style="color:#3071a9">网站首页</a>
					</li>
				</ul>
			</div>
		</div>
	</div>
	<div class="container panel" style="margin-top: 70px;padding-bottom: 20px;min-height:580px;">
	<?php if (!empty($_smarty_tpl->tpl_vars['info']->value)) {?>
	<?php echo $_smarty_tpl->getSubTemplate ("admin/admin_info.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

	<?php }?>
	
<h3>
	添加新用户
	<div class="pull-right">
		<a href="<?php echo site_url('user/index');?>
" class="btn btn-sm btn-default">返回用户列表</a>
	</div>
</h3>
<ul class="nav nav-tabs">
	<li class="active">
		<a href="#tab-general" style="background-color: #f8f8f8 !important;">用户信息</a>
	</li>
</ul>
<form action="<?php echo site_url("user/store");?>
" method="post" class="form-horizontal" autocomplete="off" style="background:#f8f8f8;padding:1em;border:1px solid #ddd;border-top:0;">
	<input type="hidden" name="Method" value="<?php echo $_smarty_tpl->tpl_vars['Method']->value;?>
">
	<input type="hidden" name="Id" value="<?php echo $_smarty_tpl->tpl_vars['user']->value[0]['Id'];?>
">
	<div class="tab-content">
		<div class="tab-pane active" id="tab-general" style="margin: 0 20px;">
			<div class="form-group">
				<label for="name">用户身份</label>
				<select name="Type" class="form-control">
					<option value="超级管理员" <?php echo IsSelected("超级管理员",$_smarty_tpl->tpl_vars['user']->value[0]['Type']);?>
 >超级管理员</option>
					<option value="普通管理员" <?php echo IsSelected("普通管理员",$_smarty_tpl->tpl_vars['user']->value[0]['Type']);?>
>普通管理员</option>
				</select>
			</div>
			<?php if ($_smarty_tpl->tpl_vars['user_now']->value=="超级管理员") {?>
			<div class="form-group">
				<label for="name" style="display:block;">负责栏目</label>
				<span>导航模块：</span>
				<input type="checkbox" name="permission[]"  value="11" <?php echo isChecked(11,$_smarty_tpl->tpl_vars['user']->value[0]['permission']);?>
/>热点新闻
				<input type="checkbox" name="permission[]"  value="2" <?php echo isChecked(2,$_smarty_tpl->tpl_vars['user']->value[0]['permission']);?>
/>学院概况
				<input type="checkbox" name="permission[]"  value="3" <?php echo isChecked(3,$_smarty_tpl->tpl_vars['user']->value[0]['permission']);?>
/>师资队伍
				<input type="checkbox" name="permission[]"  value="4" <?php echo isChecked(4,$_smarty_tpl->tpl_vars['user']->value[0]['permission']);?>
/>科学研究
				<input type="checkbox" name="permission[]"  value="5" <?php echo isChecked(5,$_smarty_tpl->tpl_vars['user']->value[0]['permission']);?>
/>人才培养
				<input type="checkbox" name="permission[]"  value="6" <?php echo isChecked(6,$_smarty_tpl->tpl_vars['user']->value[0]['permission']);?>
/>国际交流
				<input type="checkbox" name="permission[]"  value="7" <?php echo isChecked(7,$_smarty_tpl->tpl_vars['user']->value[0]['permission']);?>
/>学生工作
				<input type="checkbox" name="permission[]"  value="8" <?php echo isChecked(8,$_smarty_tpl->tpl_vars['user']->value[0]['permission']);?>
/>招生就业
				<input type="checkbox" name="permission[]"  value="99" <?php echo isChecked(99,$_smarty_tpl->tpl_vars['user']->value[0]['permission']);?>
/>党群工作
				<input type="checkbox" name="permission[]"  value="9" <?php echo isChecked(9,$_smarty_tpl->tpl_vars['user']->value[0]['permission']);?>
/>院企合作
				</br>
				<span>新闻模块：</span>
				<input type="checkbox" name="permission[]"  value="12" <?php echo isChecked(12,$_smarty_tpl->tpl_vars['user']->value[0]['permission']);?>
/>学院办公室
				<input type="checkbox" name="permission[]"  value="16" <?php echo isChecked(16,$_smarty_tpl->tpl_vars['user']->value[0]['permission']);?>
/>科学研究
				<input type="checkbox" name="permission[]"  value="109" <?php echo isChecked(109,$_smarty_tpl->tpl_vars['user']->value[0]['permission']);?>
/>人事人才
				<input type="checkbox" name="permission[]"  value="13" <?php echo isChecked(13,$_smarty_tpl->tpl_vars['user']->value[0]['permission']);?>
/>国际合作
				<input type="checkbox" name="permission[]"  value="14" <?php echo isChecked(14,$_smarty_tpl->tpl_vars['user']->value[0]['permission']);?>
/>本科生教育
				<input type="checkbox" name="permission[]"  value="15" <?php echo isChecked(15,$_smarty_tpl->tpl_vars['user']->value[0]['permission']);?>
/>研究生教育
				<input type="checkbox" name="permission[]"  value="17" <?php echo isChecked(17,$_smarty_tpl->tpl_vars['user']->value[0]['permission']);?>
/>学生事务
				<input type="checkbox" name="permission[]"  value="18" <?php echo isChecked(18,$_smarty_tpl->tpl_vars['user']->value[0]['permission']);?>
/>继续教育
			</div>
			<?php }?>
			<div class="form-group">
				<label for="name">用户名称</label>
				<input type="text" name="UserName" class="form-control" value="<?php echo $_smarty_tpl->tpl_vars['user']->value[0]['UserName'];?>
">
			</div>
			<div class="form-group">
				<label for="name">用户密码</label>
				<input type="password" name="Password" class="form-control" />
			</div>
		</div>
	</div>
	<div class="control-group">
		<div class="controls">
			<button type="reset" class="btn btn-default">清空</button>
			<button type="submit" class="btn btn-success">提交</button>
		</div>
	</div>
</form>

	<?php echo $_smarty_tpl->getSubTemplate ("admin/admin_modal.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

	</div>
	<script src="<?php echo base_url();?>
Public/js/jquery-1.11.1.min.js"></script>
	<script src="<?php echo base_url();?>
Public/bootstrap/js/bootstrap.min.js"></script>
	<script src="<?php echo base_url();?>
Public/js/index.js"></script>
	    <script>
        function modal(href)
        {
        	$('#delete-url').attr('href',href);
            $('#myModal').modal();
        }
    </script>
	</body>
</html>
<?php }} ?>
